import com.tengfei.pojo.Hello;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description:
 * @author: ten_fei
 * @date: 2021-07-05 19:09
 */
public class test1 {
    public static void main(String[] args) {
        // 获取Spring的上下文对象
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        //
        Hello hello = (Hello)(context.getBean("hello"));
        System.out.println(hello.toString());
    }
}
